5 #include <linux/linkage.h>
6 #include <linux/wait.h>
7 #include <linux/kdev_t.h>
10 #include <linux/stat.h>
12 #include <linux/list.h>
14 #include <linux/rbtree.h>
19 #include <linux/capability.h>
31 #include <asm/byteorder.h>
46 struct swap_info_struct;
62 struct buffer_head *bh_result,
int create);
67 #define MAY_EXEC 0x00000001
68 #define MAY_WRITE 0x00000002
69 #define MAY_READ 0x00000004
70 #define MAY_APPEND 0x00000008
71 #define MAY_ACCESS 0x00000010
72 #define MAY_OPEN 0x00000020
73 #define MAY_CHDIR 0x00000040
75 #define MAY_NOT_BLOCK 0x00000080
83 #define FMODE_READ ((__force fmode_t)0x1)
85 #define FMODE_WRITE ((__force fmode_t)0x2)
87 #define FMODE_LSEEK ((__force fmode_t)0x4)
89 #define FMODE_PREAD ((__force fmode_t)0x8)
91 #define FMODE_PWRITE ((__force fmode_t)0x10)
93 #define FMODE_EXEC ((__force fmode_t)0x20)
95 #define FMODE_NDELAY ((__force fmode_t)0x40)
97 #define FMODE_EXCL ((__force fmode_t)0x80)
100 #define FMODE_WRITE_IOCTL ((__force fmode_t)0x100)
102 #define FMODE_32BITHASH ((__force fmode_t)0x200)
104 #define FMODE_64BITHASH ((__force fmode_t)0x400)
112 #define FMODE_NOCMTIME ((__force fmode_t)0x800)
115 #define FMODE_RANDOM ((__force fmode_t)0x1000)
118 #define FMODE_UNSIGNED_OFFSET ((__force fmode_t)0x2000)
121 #define FMODE_PATH ((__force fmode_t)0x4000)
124 #define FMODE_NONOTIFY ((__force fmode_t)0x1000000)
132 #define CHECK_IOVEC_ONLY -1
176 #define RW_MASK REQ_WRITE
177 #define RWA_MASK REQ_RAHEAD
180 #define WRITE RW_MASK
181 #define READA RWA_MASK
182 #define KERNEL_READ (READ|REQ_KERNEL)
183 #define KERNEL_WRITE (WRITE|REQ_KERNEL)
185 #define READ_SYNC (READ | REQ_SYNC)
186 #define WRITE_SYNC (WRITE | REQ_SYNC | REQ_NOIDLE)
187 #define WRITE_ODIRECT (WRITE | REQ_SYNC)
188 #define WRITE_FLUSH (WRITE | REQ_SYNC | REQ_NOIDLE | REQ_FLUSH)
189 #define WRITE_FUA (WRITE | REQ_SYNC | REQ_NOIDLE | REQ_FUA)
190 #define WRITE_FLUSH_FUA (WRITE | REQ_SYNC | REQ_NOIDLE | REQ_FLUSH | REQ_FUA)
196 #define ATTR_MODE (1 << 0)
197 #define ATTR_UID (1 << 1)
198 #define ATTR_GID (1 << 2)
199 #define ATTR_SIZE (1 << 3)
200 #define ATTR_ATIME (1 << 4)
201 #define ATTR_MTIME (1 << 5)
202 #define ATTR_CTIME (1 << 6)
203 #define ATTR_ATIME_SET (1 << 7)
204 #define ATTR_MTIME_SET (1 << 8)
205 #define ATTR_FORCE (1 << 9)
206 #define ATTR_ATTR_FLAG (1 << 10)
207 #define ATTR_KILL_SUID (1 << 11)
208 #define ATTR_KILL_SGID (1 << 12)
209 #define ATTR_FILE (1 << 13)
210 #define ATTR_KILL_PRIV (1 << 14)
211 #define ATTR_OPEN (1 << 15)
212 #define ATTR_TIMES_SET (1 << 16)
244 #include <linux/quota.h>
277 #define AOP_FLAG_UNINTERRUPTIBLE 0x0001
278 #define AOP_FLAG_CONT_EXPAND 0x0002
279 #define AOP_FLAG_NOFS 0x0004
305 static inline void iov_iter_init(
struct iov_iter *
i,
306 const struct iovec *iov,
unsigned long nr_segs,
307 size_t count,
size_t written)
312 i->
count = count + written;
317 static inline size_t iov_iter_count(
struct iov_iter *
i)
359 struct page **pagep,
void **fsdata);
361 loff_t
pos,
unsigned len,
unsigned copied,
370 loff_t
offset,
unsigned long nr_segs);
372 void **,
unsigned long *);
397 loff_t
pos,
unsigned len,
unsigned flags,
398 struct page **pagep,
void **fsdata);
401 loff_t
pos,
unsigned len,
unsigned copied,
471 #define PAGECACHE_TAG_DIRTY 0
472 #define PAGECACHE_TAG_WRITEBACK 1
473 #define PAGECACHE_TAG_TOWRITE 2
500 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
502 #define __NEED_I_SIZE_ORDERED
503 #define i_size_ordered_init(inode) seqcount_init(&inode->i_size_seqcount)
505 #define i_size_ordered_init(inode) do { } while (0)
509 #define ACL_NOT_CACHED ((void *)(-1))
511 #define IOP_FASTPERM 0x0001
512 #define IOP_LOOKUP 0x0002
513 #define IOP_NOFOLLOW 0x0004
527 #ifdef CONFIG_FS_POSIX_ACL
536 #ifdef CONFIG_SECURITY
563 #ifdef __NEED_I_SIZE_ORDERED
600 #ifdef CONFIG_FSNOTIFY
601 __u32 i_fsnotify_mask;
611 static inline int inode_unhashed(
struct inode *inode)
613 return hlist_unhashed(&inode->
i_hash);
646 static inline loff_t i_size_read(
const struct inode *inode)
648 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
653 seq = read_seqcount_begin(&inode->i_size_seqcount);
655 }
while (read_seqcount_retry(&inode->i_size_seqcount, seq));
657 #elif BITS_PER_LONG==32 && defined(CONFIG_PREEMPT)
674 static inline void i_size_write(
struct inode *inode, loff_t i_size)
676 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
677 write_seqcount_begin(&inode->i_size_seqcount);
679 write_seqcount_end(&inode->i_size_seqcount);
680 #elif BITS_PER_LONG==32 && defined(CONFIG_PREEMPT)
694 static inline uid_t i_uid_read(
const struct inode *inode)
699 static inline gid_t i_gid_read(
const struct inode *inode)
704 static inline void i_uid_write(
struct inode *inode,
uid_t uid)
709 static inline void i_gid_write(
struct inode *inode,
gid_t gid)
714 static inline unsigned iminor(
const struct inode *inode)
719 static inline unsigned imajor(
const struct inode *inode)
753 return (index >= ra->
start &&
757 #define FILE_MNT_WRITE_TAKEN 1
758 #define FILE_MNT_WRITE_RELEASED 2
770 #define f_dentry f_path.dentry
771 #define f_vfsmnt f_path.mnt
791 #ifdef CONFIG_SECURITY
803 #ifdef CONFIG_DEBUG_WRITECOUNT
804 unsigned long f_mnt_write_state;
815 static inline struct file *get_file(
struct file *
f)
820 #define fput_atomic(x) atomic_long_add_unless(&(x)->f_count, -1, 1)
821 #define file_count(x) atomic_long_read(&(x)->f_count)
823 #ifdef CONFIG_DEBUG_WRITECOUNT
824 static inline void file_take_write(
struct file *
f)
826 WARN_ON(f->f_mnt_write_state != 0);
829 static inline void file_release_write(
struct file *
f)
833 static inline void file_reset_write(
struct file *
f)
835 f->f_mnt_write_state = 0;
837 static inline void file_check_state(
struct file *
f)
846 static inline int file_check_writeable(
struct file *
f)
851 "mnt_want_write()\n");
856 static inline void file_take_write(
struct file *filp) {}
857 static inline void file_release_write(
struct file *filp) {}
858 static inline void file_reset_write(
struct file *filp) {}
859 static inline void file_check_state(
struct file *filp) {}
860 static inline int file_check_writeable(
struct file *filp)
866 #define MAX_NON_LFS ((1UL<<31) - 1)
870 #if BITS_PER_LONG==32
871 #define MAX_LFS_FILESIZE (((loff_t)PAGE_CACHE_SIZE << (BITS_PER_LONG-1))-1)
872 #elif BITS_PER_LONG==64
873 #define MAX_LFS_FILESIZE ((loff_t)0x7fffffffffffffffLL)
883 #define FL_DOWNGRADE_PENDING 256
884 #define FL_UNLOCK_PENDING 512
890 #define FILE_LOCK_DEFERRED 1
959 #define INT_LIMIT(x) (~((x)1 << (sizeof(x)*8 - 1)))
960 #define OFFSET_MAX INT_LIMIT(loff_t)
961 #define OFFT_OFFSET_MAX INT_LIMIT(off_t)
964 #include <linux/fcntl.h>
968 #ifdef CONFIG_FILE_LOCKING
971 struct flock __user *);
973 #if BITS_PER_LONG == 32
974 extern int fcntl_getlk64(
struct file *,
struct flock64 __user *);
975 extern int fcntl_setlk64(
unsigned int,
struct file *,
unsigned int,
1021 #if BITS_PER_LONG == 32
1027 static inline int fcntl_setlk64(
unsigned int fd,
struct file *
file,
1175 #define FASYNC_MAGIC 0x4601
1199 #define MNT_FORCE 0x00000001
1200 #define MNT_DETACH 0x00000002
1201 #define MNT_EXPIRE 0x00000004
1202 #define UMOUNT_NOFOLLOW 0x00000008
1203 #define UMOUNT_UNUSED 0x80000000
1218 #define SB_FREEZE_LEVELS (SB_FREEZE_COMPLETE - 1)
1228 #ifdef CONFIG_DEBUG_LOCK_ALLOC
1250 #ifdef CONFIG_SECURITY
1397 static inline int sb_start_write_trylock(
struct super_block *
sb)
1421 static inline void sb_start_pagefault(
struct super_block *
sb)
1439 static inline void sb_start_intwrite(
struct super_block *
sb)
1493 #define DT_UNKNOWN 0
1510 struct block_device_operations;
1515 #define HAVE_COMPAT_IOCTL 1
1516 #define HAVE_UNLOCKED_IOCTL 1
1577 struct file *,
unsigned open_flag,
1578 umode_t create_mode,
int *opened);
1584 unsigned long nr_segs,
unsigned long fast_segs,
1585 struct iovec *fast_pointer,
1586 struct iovec **ret_pointer);
1591 unsigned long, loff_t *);
1593 unsigned long, loff_t *);
1630 #define S_IMMUTABLE 8
1632 #define S_NOQUOTA 32
1633 #define S_DIRSYNC 64
1634 #define S_NOCMTIME 128
1635 #define S_SWAPFILE 256
1636 #define S_PRIVATE 512
1638 #define S_AUTOMOUNT 2048
1639 #define S_NOSEC 4096
1654 #define __IS_FLG(inode, flg) ((inode)->i_sb->s_flags & (flg))
1656 #define IS_RDONLY(inode) ((inode)->i_sb->s_flags & MS_RDONLY)
1657 #define IS_SYNC(inode) (__IS_FLG(inode, MS_SYNCHRONOUS) || \
1658 ((inode)->i_flags & S_SYNC))
1659 #define IS_DIRSYNC(inode) (__IS_FLG(inode, MS_SYNCHRONOUS|MS_DIRSYNC) || \
1660 ((inode)->i_flags & (S_SYNC|S_DIRSYNC)))
1661 #define IS_MANDLOCK(inode) __IS_FLG(inode, MS_MANDLOCK)
1662 #define IS_NOATIME(inode) __IS_FLG(inode, MS_RDONLY|MS_NOATIME)
1663 #define IS_I_VERSION(inode) __IS_FLG(inode, MS_I_VERSION)
1665 #define IS_NOQUOTA(inode) ((inode)->i_flags & S_NOQUOTA)
1666 #define IS_APPEND(inode) ((inode)->i_flags & S_APPEND)
1667 #define IS_IMMUTABLE(inode) ((inode)->i_flags & S_IMMUTABLE)
1668 #define IS_POSIXACL(inode) __IS_FLG(inode, MS_POSIXACL)
1670 #define IS_DEADDIR(inode) ((inode)->i_flags & S_DEAD)
1671 #define IS_NOCMTIME(inode) ((inode)->i_flags & S_NOCMTIME)
1672 #define IS_SWAPFILE(inode) ((inode)->i_flags & S_SWAPFILE)
1673 #define IS_PRIVATE(inode) ((inode)->i_flags & S_PRIVATE)
1674 #define IS_IMA(inode) ((inode)->i_flags & S_IMA)
1675 #define IS_AUTOMOUNT(inode) ((inode)->i_flags & S_AUTOMOUNT)
1676 #define IS_NOSEC(inode) ((inode)->i_flags & S_NOSEC)
1731 #define I_DIRTY_SYNC (1 << 0)
1732 #define I_DIRTY_DATASYNC (1 << 1)
1733 #define I_DIRTY_PAGES (1 << 2)
1735 #define I_NEW (1 << __I_NEW)
1736 #define I_WILL_FREE (1 << 4)
1737 #define I_FREEING (1 << 5)
1738 #define I_CLEAR (1 << 6)
1740 #define I_SYNC (1 << __I_SYNC)
1741 #define I_REFERENCED (1 << 8)
1742 #define __I_DIO_WAKEUP 9
1743 #define I_DIO_WAKEUP (1 << I_DIO_WAKEUP)
1745 #define I_DIRTY (I_DIRTY_SYNC | I_DIRTY_DATASYNC | I_DIRTY_PAGES)
1748 static inline void mark_inode_dirty(
struct inode *inode)
1753 static inline void mark_inode_dirty_sync(
struct inode *inode)
1758 extern void inc_nlink(
struct inode *inode);
1763 static inline void inode_inc_link_count(
struct inode *inode)
1766 mark_inode_dirty(inode);
1769 static inline void inode_dec_link_count(
struct inode *inode)
1772 mark_inode_dirty(inode);
1783 static inline void inode_inc_iversion(
struct inode *inode)
1785 spin_lock(&inode->
i_lock);
1787 spin_unlock(&inode->
i_lock);
1798 static inline void file_accessed(
struct file *
file)
1810 #define FS_REQUIRES_DEV 1
1811 #define FS_BINARY_MOUNTDATA 2
1812 #define FS_HAS_SUBTYPE 4
1813 #define FS_REVAL_DOT 16384
1814 #define FS_RENAME_DOES_D_MOVE 32768
1816 const char *,
void *);
1835 int flags,
const char *dev_name,
void *data,
1836 int (*fill_super)(
struct super_block *,
void *,
int));
1838 int flags,
void *data,
1839 int (*fill_super)(
struct super_block *,
void *,
int));
1841 int flags,
void *data,
1842 int (*fill_super)(
struct super_block *,
void *,
int));
1856 int flags,
void *data);
1863 #define fops_get(fops) \
1864 (((fops) && try_module_get((fops)->owner) ? (fops) : NULL))
1865 #define fops_put(fops) \
1866 do { if (fops) module_put((fops)->owner); } while(0)
1871 #define kern_mount(type) kern_mount_data(type, NULL)
1875 extern long do_mount(
const char *,
const char *,
const char *,
unsigned long,
void *);
1893 #define MAX_RW_COUNT (INT_MAX & PAGE_CACHE_MASK)
1896 #define FLOCK_VERIFY_READ 1
1897 #define FLOCK_VERIFY_WRITE 2
1899 #ifdef CONFIG_FILE_LOCKING
1908 static inline int __mandatory_lock(
struct inode *
ino)
1918 static inline int mandatory_lock(
struct inode *ino)
1923 static inline int locks_verify_locked(
struct inode *inode)
1925 if (mandatory_lock(inode))
1930 static inline int locks_verify_truncate(
struct inode *inode,
1934 if (inode->
i_flock && mandatory_lock(inode))
1937 size < inode->i_size ? size : inode->
i_size,
1938 (size < inode->i_size ? inode->
i_size - size
1944 static inline int break_lease(
struct inode *inode,
unsigned int mode)
1957 struct file *filp, loff_t
offset,
1963 static inline int __mandatory_lock(
struct inode *inode)
1968 static inline int mandatory_lock(
struct inode *inode)
1973 static inline int locks_verify_locked(
struct inode *inode)
1978 static inline int locks_verify_truncate(
struct inode *inode,
struct file *filp,
1984 static inline int break_lease(
struct inode *inode,
unsigned int mode)
2011 extern int filp_close(
struct file *, fl_owner_t
id);
2020 int (*
open)(
struct inode *,
struct file *),
2022 extern int finish_no_open(
struct file *file,
struct dentry *dentry);
2036 #define __getname() kmem_cache_alloc(names_cachep, GFP_KERNEL)
2037 #define __putname(name) kmem_cache_free(names_cachep, (void *)(name))
2038 #ifndef CONFIG_AUDITSYSCALL
2039 #define putname(name) final_putname(name)
2050 extern void bd_forget(
struct inode *inode);
2061 static inline void bd_forget(
struct inode *inode) {}
2096 extern int bd_link_disk_holder(
struct block_device *bdev,
struct gendisk *disk);
2097 extern void bd_unlink_disk_holder(
struct block_device *bdev,
2098 struct gendisk *disk);
2100 static inline int bd_link_disk_holder(
struct block_device *bdev,
2101 struct gendisk *disk)
2105 static inline void bd_unlink_disk_holder(
struct block_device *bdev,
2106 struct gendisk *disk)
2113 #define CHRDEV_MAJOR_HASH_SIZE 255
2124 static inline int register_chrdev(
unsigned int major,
const char *
name,
2130 static inline void unregister_chrdev(
unsigned int major,
const char *
name)
2136 #define BDEVNAME_SIZE 32
2137 #define BDEVT_SIZE 10
2140 #define BLKDEV_MAJOR_HASH_SIZE 255
2147 #define BLKDEV_MAJOR_HASH_SIZE 0
2164 #define bio_rw(bio) ((bio)->bi_rw & (RW_MASK | RWA_MASK))
2169 #define bio_data_dir(bio) ((bio)->bi_rw & 1)
2181 static inline void invalidate_remote_inode(
struct inode *inode)
2198 loff_t lstart, loff_t lend);
2200 loff_t
start, loff_t
end,
int sync_mode);
2206 extern int vfs_fsync(
struct file *file,
int datasync);
2217 static inline bool execute_ok(
struct inode *inode)
2238 static inline int get_write_access(
struct inode *inode)
2242 static inline int deny_write_access(
struct file *file)
2244 struct inode *inode = file->
f_path.dentry->d_inode;
2247 static inline void put_write_access(
struct inode * inode)
2251 static inline void allow_write_access(
struct file *file)
2257 static inline void i_readcount_dec(
struct inode *inode)
2262 static inline void i_readcount_inc(
struct inode *inode)
2267 static inline void i_readcount_dec(
struct inode *inode)
2271 static inline void i_readcount_inc(
struct inode *inode)
2278 extern int kernel_read(
struct file *, loff_t,
char *,
unsigned long);
2279 extern struct file *
open_exec(
const char *);
2282 extern int is_subdir(
struct dentry *,
struct dentry *);
2296 extern void ihold(
struct inode * inode);
2297 extern void iput(
struct inode *);
2298 extern struct inode *
igrab(
struct inode *);
2302 static inline int generic_drop_inode(
struct inode *inode)
2304 return !inode->
i_nlink || inode_unhashed(inode);
2308 unsigned long hashval,
int (*
test)(
struct inode *,
void *),
2311 int (*
test)(
struct inode *,
void *),
void *data);
2314 extern struct inode *
iget5_locked(
struct super_block *,
unsigned long,
int (*
test)(
struct inode *,
void *),
int (*
set)(
struct inode *,
void *),
void *);
2318 #ifdef CONFIG_DEBUG_LOCK_ALLOC
2319 extern void lockdep_annotate_inode_mutex_key(
struct inode *inode);
2321 static inline void lockdep_annotate_inode_mutex_key(
struct inode *inode) { };
2326 extern void __iget(
struct inode * inode);
2337 static inline void insert_inode_hash(
struct inode *inode)
2343 static inline void remove_inode_hash(
struct inode *inode)
2345 if (!inode_unhashed(inode))
2362 unsigned long size,
pgoff_t pgoff);
2370 unsigned long *, loff_t, loff_t *,
size_t,
size_t);
2372 unsigned long, loff_t, loff_t *,
size_t,
ssize_t);
2376 unsigned long *nr_segs,
size_t *
count,
int access_flags);
2380 unsigned long nr_segs, loff_t
pos);
2391 struct file *, loff_t *,
size_t,
unsigned int);
2393 struct file *
out, loff_t *,
size_t len,
unsigned int flags);
2395 size_t len,
unsigned int flags);
2403 int origin, loff_t maxsize, loff_t eof);
2407 #ifdef CONFIG_FS_XIP
2412 size_t len, loff_t *ppos);
2422 typedef void (dio_submit_t)(
int rw,
struct bio *bio,
struct inode *
inode,
2430 DIO_SKIP_HOLES = 0x02,
2438 dio_submit_t submit_io,
int flags);
2440 static inline ssize_t blockdev_direct_IO(
int rw,
struct kiocb *iocb,
2441 struct inode *inode,
const struct iovec *iov, loff_t
offset,
2445 offset, nr_segs, get_block,
NULL,
NULL,
2446 DIO_LOCKING | DIO_SKIP_HOLES);
2455 #define special_file(m) (S_ISCHR(m)||S_ISBLK(m)||S_ISFIFO(m)||S_ISSOCK(m))
2457 extern int vfs_readlink(
struct dentry *,
char __user *,
int,
const char *);
2459 extern int page_readlink(
struct dentry *,
char __user *,
int);
2462 extern int __page_symlink(
struct inode *inode,
const char *symname,
int len,
2464 extern int page_symlink(
struct inode *inode,
const char *symname,
int len);
2486 loff_t
start, loff_t len,
2510 extern int simple_open(
struct inode *inode,
struct file *file);
2511 extern int simple_link(
struct dentry *,
struct inode *,
struct dentry *);
2513 extern int simple_rmdir(
struct inode *,
struct dentry *);
2514 extern int simple_rename(
struct inode *,
struct dentry *,
struct inode *,
struct dentry *);
2515 extern int noop_fsync(
struct file *, loff_t, loff_t,
int);
2519 loff_t
pos,
unsigned len,
unsigned flags,
2520 struct page **pagep,
void **fsdata);
2522 loff_t
pos,
unsigned len,
unsigned copied,
2525 extern struct dentry *
simple_lookup(
struct inode *,
struct dentry *,
unsigned int flags);
2530 struct dentry *
d_alloc_name(
struct dentry *,
const char *);
2544 #ifdef CONFIG_MIGRATION
2549 #define buffer_migrate_page NULL
2570 spin_lock(&dentry->
d_lock);
2571 res = dentry->
d_parent->d_inode->i_ino;
2572 spin_unlock(&dentry->
d_lock);
2587 #define SIMPLE_TRANSACTION_LIMIT (PAGE_SIZE - sizeof(struct simple_transaction_argresp))
2592 size_t size, loff_t *
pos);
2613 #define DEFINE_SIMPLE_ATTRIBUTE(__fops, __get, __set, __fmt) \
2614 static int __fops ## _open(struct inode *inode, struct file *file) \
2616 __simple_attr_check_format(__fmt, 0ull); \
2617 return simple_attr_open(inode, file, __get, __set, __fmt); \
2619 static const struct file_operations __fops = { \
2620 .owner = THIS_MODULE, \
2621 .open = __fops ## _open, \
2622 .release = simple_attr_release, \
2623 .read = simple_attr_read, \
2624 .write = simple_attr_write, \
2625 .llseek = generic_file_llseek, \
2629 void __simple_attr_check_format(
const char *
fmt, ...)
2635 int (*
get)(
void *, u64 *),
int (*
set)(
void *, u64),
2639 size_t len, loff_t *ppos);
2641 size_t len, loff_t *ppos);
2645 void __user *
buffer,
size_t *lenp, loff_t *ppos);
2647 void __user *
buffer,
size_t *lenp, loff_t *ppos);
2649 void __user *
buffer,
size_t *lenp, loff_t *ppos);
2652 #define __FMODE_EXEC ((__force int) FMODE_EXEC)
2653 #define __FMODE_NONOTIFY ((__force int) FMODE_NONOTIFY)
2655 #define ACC_MODE(x) ("\004\002\006\006"[(x)&O_ACCMODE])
2656 #define OPEN_FMODE(flag) ((__force fmode_t)(((flag + 1) & O_ACCMODE) | \
2657 (flag & __FMODE_NONOTIFY)))
2659 static inline int is_sxid(
umode_t mode)
2664 static inline void inode_has_no_xattr(
struct inode *inode)