+ quota-check-presence-of-quota-operation-structures-instead-of-quota_read-and-quota_write-callbacks.patch added to mm-unstable branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: quota: check presence of quota operation structures instead of ->quota_read and ->quota_write callbacks
has been added to the -mm mm-unstable branch.  Its filename is
     quota-check-presence-of-quota-operation-structures-instead-of-quota_read-and-quota_write-callbacks.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/quota-check-presence-of-quota-operation-structures-instead-of-quota_read-and-quota_write-callbacks.patch

This patch will later appear in the mm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days

------------------------------------------------------
From: Jan Kara <jack@xxxxxxx>
Subject: quota: check presence of quota operation structures instead of ->quota_read and ->quota_write callbacks
Date: Thu, 13 Jul 2023 15:48:45 +0200

Currently we check whether superblock has ->quota_read and ->quota_write
operations to check whether filesystem supports quotas.  However for
example for shmfs we will not read or write dquots so check whether quota
operations are set in the superblock instead.

Link: https://lkml.kernel.org/r/20230713134848.249779-4-cem@xxxxxxxxxx
Signed-off-by: Jan Kara <jack@xxxxxxx>
Reviewed-by: Carlos Maiolino <cmaiolino@xxxxxxxxxx>
Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Cc: Christian Brauner <brauner@xxxxxxxxxx>
Cc: Darrick J. Wong <djwong@xxxxxxxxxx>
Cc: Hugh Dickins <hughd@xxxxxxxxxx>
Cc: Lukas Czerner <lczerner@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/quota/dquot.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/fs/quota/dquot.c~quota-check-presence-of-quota-operation-structures-instead-of-quota_read-and-quota_write-callbacks
+++ a/fs/quota/dquot.c
@@ -2367,7 +2367,7 @@ int dquot_load_quota_sb(struct super_blo
 
 	if (!fmt)
 		return -ESRCH;
-	if (!sb->s_op->quota_write || !sb->s_op->quota_read ||
+	if (!sb->dq_op || !sb->s_qcop ||
 	    (type == PRJQUOTA && sb->dq_op->get_projid == NULL)) {
 		error = -EINVAL;
 		goto out_fmt;
_

Patches currently in -mm which might be from jack@xxxxxxx are

quota-check-presence-of-quota-operation-structures-instead-of-quota_read-and-quota_write-callbacks.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux