]> git.openpandora.org Git - pandora-kernel.git/commitdiff
quota: Store maximum space limit in bytes
authorJan Kara <jack@suse.cz>
Thu, 9 Oct 2014 14:54:13 +0000 (16:54 +0200)
committerJan Kara <jack@suse.cz>
Fri, 30 Jan 2015 11:51:21 +0000 (12:51 +0100)
Currently maximum space limit quota format supports is in blocks however
since we store space limits in bytes, this is somewhat confusing. So
store the maximum limit in bytes as well. Also rename the field to match
the new unit and related inode field to match the new naming scheme.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ocfs2/quota_local.c
fs/quota/dquot.c
fs/quota/quota_v1.c
fs/quota/quota_v2.c
include/linux/quota.h

index 55f832f553cb85290a1dc11ff7d5724c240edc65..89c0b26208144132585f30b0c29a350c83f9f196 100644 (file)
@@ -701,8 +701,8 @@ static int ocfs2_local_read_info(struct super_block *sb, int type)
        /* We don't need the lock and we have to acquire quota file locks
         * which will later depend on this lock */
        mutex_unlock(&sb_dqopt(sb)->dqio_mutex);
-       info->dqi_maxblimit = 0x7fffffffffffffffLL;
-       info->dqi_maxilimit = 0x7fffffffffffffffLL;
+       info->dqi_max_spc_limit = 0x7fffffffffffffffLL;
+       info->dqi_max_ino_limit = 0x7fffffffffffffffLL;
        oinfo = kmalloc(sizeof(struct ocfs2_mem_dqinfo), GFP_NOFS);
        if (!oinfo) {
                mlog(ML_ERROR, "failed to allocate memory for ocfs2 quota"
Simple merge
Simple merge
Simple merge
Simple merge