2006-01-24 04:43:28

by Herbert Poetzl

[permalink] [raw]
Subject: [Patch] quota: remove unused sync_dquots_dev()


browsing through the quota code, I found that the
already removed sync_dquots_dev(dev,type) is still
defined in the no-quota case, so here is a patch
to remove this unused define ...

best,
Herbert

Signed-off-by: Herbert P?tzl <[email protected]>

--- ./include/linux/quotaops.h.orig 2006-01-03 17:30:10 +0100
+++ ./include/linux/quotaops.h 2006-01-24 05:36:57 +0100
@@ -190,7 +190,6 @@ static __inline__ int DQUOT_OFF(struct s
*/
#define sb_dquot_ops (NULL)
#define sb_quotactl_ops (NULL)
-#define sync_dquots_dev(dev,type) (NULL)
#define DQUOT_INIT(inode) do { } while(0)
#define DQUOT_DROP(inode) do { } while(0)
#define DQUOT_ALLOC_INODE(inode) (0)


2006-01-24 08:58:53

by Jan Kara

[permalink] [raw]
Subject: Re: [Patch] quota: remove unused sync_dquots_dev()

> browsing through the quota code, I found that the
> already removed sync_dquots_dev(dev,type) is still
> defined in the no-quota case, so here is a patch
> to remove this unused define ...
Yes, that's unused for some while. Please send it to Andrew/Linus
for inclusion.

> Signed-off-by: Herbert P?tzl <[email protected]>
Acked-by: Jan Kara <[email protected]>

Honza

> --- ./include/linux/quotaops.h.orig 2006-01-03 17:30:10 +0100
> +++ ./include/linux/quotaops.h 2006-01-24 05:36:57 +0100
> @@ -190,7 +190,6 @@ static __inline__ int DQUOT_OFF(struct s
> */
> #define sb_dquot_ops (NULL)
> #define sb_quotactl_ops (NULL)
> -#define sync_dquots_dev(dev,type) (NULL)
> #define DQUOT_INIT(inode) do { } while(0)
> #define DQUOT_DROP(inode) do { } while(0)
> #define DQUOT_ALLOC_INODE(inode) (0)
>
--
Jan Kara <[email protected]>
SuSE CR Labs