ext4: add ext4_is_quota_file()
authorTahsin Erdogan <tahsin@google.com>
Thu, 22 Jun 2017 15:31:25 +0000 (11:31 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 22 Jun 2017 15:31:25 +0000 (11:31 -0400)
commit02749a4c20827649859bf7e2435f1b238c24f935
tree22d38a7118bbe3267e2900418728607d5ba38ad7
parent47387409ee2e09db6d0e79a026a02073dc56bb8c
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>
fs/ext4/ext4.h
fs/ext4/inode.c
fs/ext4/ioctl.c
fs/ext4/mballoc.c
fs/ext4/move_extent.c