diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-10-04 16:25:58 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2019-10-04 16:26:48 -0400 |
commit | 62f5e4fa67dde8255fa18a06d5354cdca02b6fc7 (patch) | |
tree | 1819ccb1adf6d449d7b4e7958e344ad963700f7b /libbcachefs/fs-ioctl.c | |
parent | b540b170c9c277ffc5bdaf6b05e21c30f142dfc9 (diff) |
Update bcachefs sources to ce9293e9d0 bcachefs: Factor out fs-common.c
Diffstat (limited to 'libbcachefs/fs-ioctl.c')
-rw-r--r-- | libbcachefs/fs-ioctl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libbcachefs/fs-ioctl.c b/libbcachefs/fs-ioctl.c index e80576f..031e6d9 100644 --- a/libbcachefs/fs-ioctl.c +++ b/libbcachefs/fs-ioctl.c @@ -5,6 +5,7 @@ #include "chardev.h" #include "dirent.h" #include "fs.h" +#include "fs-common.h" #include "fs-ioctl.h" #include "quota.h" @@ -164,6 +165,15 @@ err: return ret; } +static int bch2_reinherit_attrs_fn(struct bch_inode_info *inode, + struct bch_inode_unpacked *bi, + void *p) +{ + struct bch_inode_info *dir = p; + + return !bch2_reinherit_attrs(bi, &dir->ei_inode); +} + static int bch2_ioc_reinherit_attrs(struct bch_fs *c, struct file *file, struct bch_inode_info *src, |