summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-07-25 18:01:41 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2017-08-01 01:48:32 +0200
commit5c57132eaf5265937e46340bfbfb97ffb078c423 (patch)
tree66d113156b37e09e6b82e2eece25638eab86f269 /fs/f2fs/file.c
parentf2fs: record quota during dot{,dot} recovery (diff)
downloadlinux-5c57132eaf5265937e46340bfbfb97ffb078c423.tar.xz
linux-5c57132eaf5265937e46340bfbfb97ffb078c423.zip
f2fs: support project quota
This patch adds to support plain project quota. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r--fs/f2fs/file.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index d2ca4b71cb53..a0413c951458 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -1518,19 +1518,6 @@ static int f2fs_file_flush(struct file *file, fl_owner_t id)
return 0;
}
-#define F2FS_REG_FLMASK (~(FS_DIRSYNC_FL | FS_TOPDIR_FL))
-#define F2FS_OTHER_FLMASK (FS_NODUMP_FL | FS_NOATIME_FL)
-
-static inline __u32 f2fs_mask_flags(umode_t mode, __u32 flags)
-{
- if (S_ISDIR(mode))
- return flags;
- else if (S_ISREG(mode))
- return flags & F2FS_REG_FLMASK;
- else
- return flags & F2FS_OTHER_FLMASK;
-}
-
static int f2fs_ioc_getflags(struct file *filp, unsigned long arg)
{
struct inode *inode = file_inode(filp);