diff options
author | Tahsin Erdogan <tahsin@google.com> | 2017-06-22 17:31:25 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2017-06-22 17:31:25 +0200 |
commit | 02749a4c20827649859bf7e2435f1b238c24f935 (patch) | |
tree | 22d38a7118bbe3267e2900418728607d5ba38ad7 /fs/ext4/ext4.h | |
parent | ext2, ext4: make mb block cache names more explicit (diff) | |
download | linux-02749a4c20827649859bf7e2435f1b238c24f935.tar.xz linux-02749a4c20827649859bf7e2435f1b238c24f935.zip |
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.h | 2 |
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 |