mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-19 13:22:03 +00:00
Merge branch 'work.file' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs 'struct file' related updates from Al Viro: "A bit more of 'this fget() would be better off as fdget()' whack-a-mole + a couple of ->f_count-related cleanups" * 'work.file' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: media: switch to fdget() drm_syncobj: switch to fdget() amdgpu: switch to fdget() don't open-code file_count() fs: drop unused fput_atomic definition
This commit is contained in:
commit
d897166d85
5 changed files with 26 additions and 29 deletions
|
@ -975,7 +975,6 @@ static inline struct file *get_file(struct file *f)
|
|||
#define get_file_rcu_many(x, cnt) \
|
||||
atomic_long_add_unless(&(x)->f_count, (cnt), 0)
|
||||
#define get_file_rcu(x) get_file_rcu_many((x), 1)
|
||||
#define fput_atomic(x) atomic_long_add_unless(&(x)->f_count, -1, 1)
|
||||
#define file_count(x) atomic_long_read(&(x)->f_count)
|
||||
|
||||
#define MAX_NON_LFS ((1UL<<31) - 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue