Lines Matching refs:binode
138 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_sync_inode_flags_to_i_flags() local
141 if (binode->flags & BTRFS_INODE_SYNC) in btrfs_sync_inode_flags_to_i_flags()
143 if (binode->flags & BTRFS_INODE_IMMUTABLE) in btrfs_sync_inode_flags_to_i_flags()
145 if (binode->flags & BTRFS_INODE_APPEND) in btrfs_sync_inode_flags_to_i_flags()
147 if (binode->flags & BTRFS_INODE_NOATIME) in btrfs_sync_inode_flags_to_i_flags()
149 if (binode->flags & BTRFS_INODE_DIRSYNC) in btrfs_sync_inode_flags_to_i_flags()
159 struct btrfs_inode *binode = BTRFS_I(file_inode(file)); in btrfs_ioctl_getflags() local
160 unsigned int flags = btrfs_inode_flags_to_fsflags(binode->flags); in btrfs_ioctl_getflags()
187 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_ioctl_setflags() local
188 struct btrfs_root *root = binode->root; in btrfs_ioctl_setflags()
215 old_flags = binode->flags; in btrfs_ioctl_setflags()
220 old_fsflags = btrfs_inode_flags_to_fsflags(binode->flags); in btrfs_ioctl_setflags()
229 binode->flags |= BTRFS_INODE_SYNC; in btrfs_ioctl_setflags()
231 binode->flags &= ~BTRFS_INODE_SYNC; in btrfs_ioctl_setflags()
233 binode->flags |= BTRFS_INODE_IMMUTABLE; in btrfs_ioctl_setflags()
235 binode->flags &= ~BTRFS_INODE_IMMUTABLE; in btrfs_ioctl_setflags()
237 binode->flags |= BTRFS_INODE_APPEND; in btrfs_ioctl_setflags()
239 binode->flags &= ~BTRFS_INODE_APPEND; in btrfs_ioctl_setflags()
241 binode->flags |= BTRFS_INODE_NODUMP; in btrfs_ioctl_setflags()
243 binode->flags &= ~BTRFS_INODE_NODUMP; in btrfs_ioctl_setflags()
245 binode->flags |= BTRFS_INODE_NOATIME; in btrfs_ioctl_setflags()
247 binode->flags &= ~BTRFS_INODE_NOATIME; in btrfs_ioctl_setflags()
249 binode->flags |= BTRFS_INODE_DIRSYNC; in btrfs_ioctl_setflags()
251 binode->flags &= ~BTRFS_INODE_DIRSYNC; in btrfs_ioctl_setflags()
260 binode->flags |= BTRFS_INODE_NODATACOW in btrfs_ioctl_setflags()
263 binode->flags |= BTRFS_INODE_NODATACOW; in btrfs_ioctl_setflags()
271 binode->flags &= ~(BTRFS_INODE_NODATACOW in btrfs_ioctl_setflags()
274 binode->flags &= ~BTRFS_INODE_NODATACOW; in btrfs_ioctl_setflags()
284 binode->flags &= ~BTRFS_INODE_COMPRESS; in btrfs_ioctl_setflags()
285 binode->flags |= BTRFS_INODE_NOCOMPRESS; in btrfs_ioctl_setflags()
293 binode->flags |= BTRFS_INODE_COMPRESS; in btrfs_ioctl_setflags()
294 binode->flags &= ~BTRFS_INODE_NOCOMPRESS; in btrfs_ioctl_setflags()
309 binode->flags &= ~(BTRFS_INODE_COMPRESS | BTRFS_INODE_NOCOMPRESS); in btrfs_ioctl_setflags()
326 binode->flags = old_flags; in btrfs_ioctl_setflags()
374 struct btrfs_inode *binode = BTRFS_I(file_inode(file)); in btrfs_ioctl_fsgetxattr() local
378 fa.fsx_xflags = btrfs_inode_flags_to_xflags(binode->flags); in btrfs_ioctl_fsgetxattr()
389 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_ioctl_fssetxattr() local
390 struct btrfs_root *root = binode->root; in btrfs_ioctl_fssetxattr()
420 old_flags = binode->flags; in btrfs_ioctl_fssetxattr()
432 binode->flags |= BTRFS_INODE_SYNC; in btrfs_ioctl_fssetxattr()
434 binode->flags &= ~BTRFS_INODE_SYNC; in btrfs_ioctl_fssetxattr()
436 binode->flags |= BTRFS_INODE_IMMUTABLE; in btrfs_ioctl_fssetxattr()
438 binode->flags &= ~BTRFS_INODE_IMMUTABLE; in btrfs_ioctl_fssetxattr()
440 binode->flags |= BTRFS_INODE_APPEND; in btrfs_ioctl_fssetxattr()
442 binode->flags &= ~BTRFS_INODE_APPEND; in btrfs_ioctl_fssetxattr()
444 binode->flags |= BTRFS_INODE_NODUMP; in btrfs_ioctl_fssetxattr()
446 binode->flags &= ~BTRFS_INODE_NODUMP; in btrfs_ioctl_fssetxattr()
448 binode->flags |= BTRFS_INODE_NOATIME; in btrfs_ioctl_fssetxattr()
450 binode->flags &= ~BTRFS_INODE_NOATIME; in btrfs_ioctl_fssetxattr()
468 binode->flags = old_flags; in btrfs_ioctl_fssetxattr()