Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
0c532315
Commit
0c532315
authored
May 19, 2002
by
Jan Kara
Committed by
Linus Torvalds
May 19, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] [10/13] quota-10-inttype
Remove use of 'short' in parameters of functions. 'int' is used instead.
parent
8ea6f99a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
fs/dquot.c
fs/dquot.c
+17
-17
fs/inode.c
fs/inode.c
+2
-2
include/linux/quota.h
include/linux/quota.h
+1
-1
include/linux/quotaops.h
include/linux/quotaops.h
+2
-2
No files found.
fs/dquot.c
View file @
0c532315
...
...
@@ -173,7 +173,7 @@ static inline void put_dquot_dup_ref(struct dquot *dquot)
dquot
->
dq_dup_ref
--
;
}
static
inline
int
const
hashfn
(
struct
super_block
*
sb
,
unsigned
int
id
,
shor
t
type
)
static
inline
int
const
hashfn
(
struct
super_block
*
sb
,
unsigned
int
id
,
in
t
type
)
{
return
((
HASHDEV
(
sb
->
s_dev
)
^
id
)
*
(
MAXQUOTAS
-
type
))
%
NR_DQHASH
;
}
...
...
@@ -190,7 +190,7 @@ static inline void remove_dquot_hash(struct dquot *dquot)
INIT_LIST_HEAD
(
&
dquot
->
dq_hash
);
}
static
inline
struct
dquot
*
find_dquot
(
unsigned
int
hashent
,
struct
super_block
*
sb
,
unsigned
int
id
,
shor
t
type
)
static
inline
struct
dquot
*
find_dquot
(
unsigned
int
hashent
,
struct
super_block
*
sb
,
unsigned
int
id
,
in
t
type
)
{
struct
list_head
*
head
;
struct
dquot
*
dquot
;
...
...
@@ -339,7 +339,7 @@ static int commit_dqblk(struct dquot *dquot)
/* Invalidate all dquots on the list, wait for all users. Note that this function is called
* after quota is disabled so no new quota might be created. As we only insert to the end of
* inuse list, we don't have to restart searching... */
static
void
invalidate_dquots
(
struct
super_block
*
sb
,
shor
t
type
)
static
void
invalidate_dquots
(
struct
super_block
*
sb
,
in
t
type
)
{
struct
dquot
*
dquot
;
struct
list_head
*
head
;
...
...
@@ -368,7 +368,7 @@ static void invalidate_dquots(struct super_block *sb, short type)
}
}
int
sync_dquots
(
struct
super_block
*
sb
,
shor
t
type
)
int
sync_dquots
(
struct
super_block
*
sb
,
in
t
type
)
{
struct
list_head
*
head
;
struct
dquot
*
dquot
;
...
...
@@ -515,7 +515,7 @@ static struct dquot *get_empty_dquot(struct super_block *sb, int type)
return
dquot
;
}
static
struct
dquot
*
dqget
(
struct
super_block
*
sb
,
unsigned
int
id
,
shor
t
type
)
static
struct
dquot
*
dqget
(
struct
super_block
*
sb
,
unsigned
int
id
,
in
t
type
)
{
unsigned
int
hashent
=
hashfn
(
sb
,
id
,
type
);
struct
dquot
*
dquot
,
*
empty
=
NODQUOT
;
...
...
@@ -593,7 +593,7 @@ static void dqputduplicate(struct dquot *dquot)
dqstats
.
drops
++
;
}
static
int
dqinit_needed
(
struct
inode
*
inode
,
shor
t
type
)
static
int
dqinit_needed
(
struct
inode
*
inode
,
in
t
type
)
{
int
cnt
;
...
...
@@ -607,7 +607,7 @@ static int dqinit_needed(struct inode *inode, short type)
return
0
;
}
static
void
add_dquot_ref
(
struct
super_block
*
sb
,
shor
t
type
)
static
void
add_dquot_ref
(
struct
super_block
*
sb
,
in
t
type
)
{
struct
list_head
*
p
;
...
...
@@ -641,7 +641,7 @@ static inline int dqput_blocks(struct dquot *dquot)
}
/* Remove references to dquots from inode - add dquot to list for freeing if needed */
int
remove_inode_dquot_ref
(
struct
inode
*
inode
,
shor
t
type
,
struct
list_head
*
tofree_head
)
int
remove_inode_dquot_ref
(
struct
inode
*
inode
,
in
t
type
,
struct
list_head
*
tofree_head
)
{
struct
dquot
*
dquot
=
inode
->
i_dquot
[
type
];
int
cnt
;
...
...
@@ -875,11 +875,11 @@ static int check_bdq(struct dquot *dquot, qsize_t space, int prealloc, char *war
*
* Note: this is a blocking operation.
*/
void
dquot_initialize
(
struct
inode
*
inode
,
shor
t
type
)
void
dquot_initialize
(
struct
inode
*
inode
,
in
t
type
)
{
struct
dquot
*
dquot
[
MAXQUOTAS
];
unsigned
int
id
=
0
;
shor
t
cnt
;
in
t
cnt
;
if
(
IS_NOQUOTA
(
inode
))
return
;
...
...
@@ -925,7 +925,7 @@ void dquot_initialize(struct inode *inode, short type)
void
dquot_drop
(
struct
inode
*
inode
)
{
struct
dquot
*
dquot
;
shor
t
cnt
;
in
t
cnt
;
inode
->
i_flags
&=
~
S_QUOTA
;
for
(
cnt
=
0
;
cnt
<
MAXQUOTAS
;
cnt
++
)
{
...
...
@@ -1020,7 +1020,7 @@ int dquot_alloc_inode(const struct inode *inode, unsigned long number)
*/
void
dquot_free_space
(
struct
inode
*
inode
,
qsize_t
number
)
{
unsigned
shor
t
cnt
;
unsigned
in
t
cnt
;
struct
dquot
*
dquot
;
/* NOBLOCK Start */
...
...
@@ -1042,7 +1042,7 @@ void dquot_free_space(struct inode *inode, qsize_t number)
*/
void
dquot_free_inode
(
const
struct
inode
*
inode
,
unsigned
long
number
)
{
unsigned
shor
t
cnt
;
unsigned
in
t
cnt
;
struct
dquot
*
dquot
;
/* NOBLOCK Start */
...
...
@@ -1161,7 +1161,7 @@ struct dquot_operations dquot_operations = {
transfer:
dquot_transfer
};
static
inline
void
set_enable_flags
(
struct
quota_info
*
dqopt
,
shor
t
type
)
static
inline
void
set_enable_flags
(
struct
quota_info
*
dqopt
,
in
t
type
)
{
switch
(
type
)
{
case
USRQUOTA
:
...
...
@@ -1173,7 +1173,7 @@ static inline void set_enable_flags(struct quota_info *dqopt, short type)
}
}
static
inline
void
reset_enable_flags
(
struct
quota_info
*
dqopt
,
shor
t
type
)
static
inline
void
reset_enable_flags
(
struct
quota_info
*
dqopt
,
in
t
type
)
{
switch
(
type
)
{
case
USRQUOTA
:
...
...
@@ -1186,7 +1186,7 @@ static inline void reset_enable_flags(struct quota_info *dqopt, short type)
}
/* Function in inode.c - remove pointers to dquots in icache */
extern
void
remove_dquot_ref
(
struct
super_block
*
,
shor
t
);
extern
void
remove_dquot_ref
(
struct
super_block
*
,
in
t
);
/*
* Turn quota off on a device. type == -1 ==> quotaoff for all types (umount)
...
...
@@ -1448,7 +1448,7 @@ static int read_stats(char *buffer, char **start, off_t offset, int count, int *
}
#endif
struct
quotactl_ops
vfs_quotactl_ops
{
struct
quotactl_ops
vfs_quotactl_ops
=
{
quota_on:
vfs_quota_on
,
quota_off:
vfs_quota_off
,
quota_sync:
vfs_quota_sync
,
...
...
fs/inode.c
View file @
0c532315
...
...
@@ -878,9 +878,9 @@ void update_atime (struct inode *inode)
/* Functions back in dquot.c */
void
put_dquot_list
(
struct
list_head
*
);
int
remove_inode_dquot_ref
(
struct
inode
*
,
shor
t
,
struct
list_head
*
);
int
remove_inode_dquot_ref
(
struct
inode
*
,
in
t
,
struct
list_head
*
);
void
remove_dquot_ref
(
struct
super_block
*
sb
,
shor
t
type
)
void
remove_dquot_ref
(
struct
super_block
*
sb
,
in
t
type
)
{
struct
inode
*
inode
;
struct
list_head
*
act_head
;
...
...
include/linux/quota.h
View file @
0c532315
...
...
@@ -248,7 +248,7 @@ struct quota_format_ops {
/* Operations working with dquots */
struct
dquot_operations
{
void
(
*
initialize
)
(
struct
inode
*
,
shor
t
);
void
(
*
initialize
)
(
struct
inode
*
,
in
t
);
void
(
*
drop
)
(
struct
inode
*
);
int
(
*
alloc_space
)
(
struct
inode
*
,
qsize_t
,
int
);
int
(
*
alloc_inode
)
(
const
struct
inode
*
,
unsigned
long
);
...
...
include/linux/quotaops.h
View file @
0c532315
...
...
@@ -20,9 +20,9 @@
/*
* declaration of quota_function calls in kernel.
*/
extern
int
sync_dquots
(
kdev_t
dev
,
shor
t
type
);
extern
int
sync_dquots
(
kdev_t
dev
,
in
t
type
);
extern
void
dquot_initialize
(
struct
inode
*
inode
,
shor
t
type
);
extern
void
dquot_initialize
(
struct
inode
*
inode
,
in
t
type
);
extern
void
dquot_drop
(
struct
inode
*
inode
);
extern
int
dquot_alloc_space
(
struct
inode
*
inode
,
qsize_t
number
,
int
prealloc
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment