summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorTahsin Erdogan <tahsin@google.com>2017-06-22 11:31:25 -0400
committerTheodore Ts'o <tytso@mit.edu>2017-06-22 11:31:25 -0400
commit02749a4c20827649859bf7e2435f1b238c24f935 (patch)
tree22d38a7118bbe3267e2900418728607d5ba38ad7 /fs/ext4/ext4.h
parent47387409ee2e09db6d0e79a026a02073dc56bb8c (diff)
downloadlinux-02749a4c20827649859bf7e2435f1b238c24f935.tar.bz2
ext4: add ext4_is_quota_file()
IS_NOQUOTA() indicates whether quota is disabled for an inode. Ext4 also uses it to check whether an inode is for a quota file. The distinction currently doesn't matter because quota is disabled only for the quota files. When we start disabling quota for other inodes in the future, we will want to make the distinction clear. Replace IS_NOQUOTA() call with ext4_is_quota_file() at places where we are checking for quota files. Signed-off-by: Tahsin Erdogan <tahsin@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index caf004d0d1b3..09983c774d31 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -2100,6 +2100,8 @@ static inline struct ext4_inode *ext4_raw_inode(struct ext4_iloc *iloc)
return (struct ext4_inode *) (iloc->bh->b_data + iloc->offset);
}
+#define ext4_is_quota_file(inode) IS_NOQUOTA(inode)
+
/*
* This structure is stuffed into the struct file's private_data field
* for directories. It is where we put information so that we can do