diff options
author | Tahsin Erdogan <tahsin@google.com> | 2017-06-22 11:31:25 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2017-06-22 11:31:25 -0400 |
commit | 02749a4c20827649859bf7e2435f1b238c24f935 (patch) | |
tree | 22d38a7118bbe3267e2900418728607d5ba38ad7 /fs/ext4/inode.c | |
parent | 47387409ee2e09db6d0e79a026a02073dc56bb8c (diff) | |
download | linux-rpi-02749a4c20827649859bf7e2435f1b238c24f935.tar.gz linux-rpi-02749a4c20827649859bf7e2435f1b238c24f935.tar.bz2 linux-rpi-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/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 1b2a68c5ea42..3e9415e2e74d 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -739,7 +739,7 @@ out_sem: if (map->m_flags & EXT4_MAP_NEW && !(map->m_flags & EXT4_MAP_UNWRITTEN) && !(flags & EXT4_GET_BLOCKS_ZERO) && - !IS_NOQUOTA(inode) && + !ext4_is_quota_file(inode) && ext4_should_order_data(inode)) { if (flags & EXT4_GET_BLOCKS_IO_SUBMIT) ret = ext4_jbd2_inode_add_wait(handle, inode); |