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/move_extent.c | |
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/move_extent.c')
-rw-r--r-- | fs/ext4/move_extent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/move_extent.c b/fs/ext4/move_extent.c index c992ef2c2f94..9bb36909ec92 100644 --- a/fs/ext4/move_extent.c +++ b/fs/ext4/move_extent.c @@ -484,7 +484,7 @@ mext_check_arguments(struct inode *orig_inode, return -EBUSY; } - if (IS_NOQUOTA(orig_inode) || IS_NOQUOTA(donor_inode)) { + if (ext4_is_quota_file(orig_inode) && ext4_is_quota_file(donor_inode)) { ext4_debug("ext4 move extent: The argument files should " "not be quota files [ino:orig %lu, donor %lu]\n", orig_inode->i_ino, donor_inode->i_ino); |