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
Kirill Smelkov
linux
Commits
0af1998d
Commit
0af1998d
authored
Sep 16, 2003
by
Stephen Lord
Committed by
Stephen Lord
Sep 16, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Some tweaks to the additional inode flags, suggested by Ethan Benson
SGI Modid: 2.5.x-xfs:slinx:158493a
parent
cd0033bc
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
4 deletions
+22
-4
fs/xfs/linux/xfs_globals.c
fs/xfs/linux/xfs_globals.c
+1
-0
fs/xfs/linux/xfs_linux.h
fs/xfs/linux/xfs_linux.h
+1
-0
fs/xfs/linux/xfs_stats.c
fs/xfs/linux/xfs_stats.c
+1
-0
fs/xfs/linux/xfs_sysctl.c
fs/xfs/linux/xfs_sysctl.c
+5
-0
fs/xfs/linux/xfs_sysctl.h
fs/xfs/linux/xfs_sysctl.h
+2
-0
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.c
+12
-4
No files found.
fs/xfs/linux/xfs_globals.c
View file @
0af1998d
...
@@ -61,6 +61,7 @@ xfs_param_t xfs_params = {
...
@@ -61,6 +61,7 @@ xfs_param_t xfs_params = {
.
stats_clear
=
{
0
,
0
,
1
},
.
stats_clear
=
{
0
,
0
,
1
},
.
inherit_sync
=
{
0
,
1
,
1
},
.
inherit_sync
=
{
0
,
1
,
1
},
.
inherit_nodump
=
{
0
,
1
,
1
},
.
inherit_nodump
=
{
0
,
1
,
1
},
.
inherit_noatim
=
{
0
,
1
,
1
},
};
};
/*
/*
...
...
fs/xfs/linux/xfs_linux.h
View file @
0af1998d
...
@@ -98,6 +98,7 @@ static inline void set_buffer_unwritten_io(struct buffer_head *bh)
...
@@ -98,6 +98,7 @@ static inline void set_buffer_unwritten_io(struct buffer_head *bh)
#define xfs_stats_clear xfs_params.stats_clear.val
#define xfs_stats_clear xfs_params.stats_clear.val
#define xfs_inherit_sync xfs_params.inherit_sync.val
#define xfs_inherit_sync xfs_params.inherit_sync.val
#define xfs_inherit_nodump xfs_params.inherit_nodump.val
#define xfs_inherit_nodump xfs_params.inherit_nodump.val
#define xfs_inherit_noatime xfs_params.inherit_noatim.val
#define NBPP PAGE_SIZE
#define NBPP PAGE_SIZE
#define DPPSHFT (PAGE_SHIFT - 9)
#define DPPSHFT (PAGE_SHIFT - 9)
...
...
fs/xfs/linux/xfs_stats.c
View file @
0af1998d
...
@@ -80,6 +80,7 @@ xfs_read_xfsstats(
...
@@ -80,6 +80,7 @@ xfs_read_xfsstats(
xfsstats
.
xs_xstrat_bytes
,
xfsstats
.
xs_xstrat_bytes
,
xfsstats
.
xs_write_bytes
,
xfsstats
.
xs_write_bytes
,
xfsstats
.
xs_read_bytes
);
xfsstats
.
xs_read_bytes
);
len
+=
sprintf
(
buffer
+
len
,
"debug %u
\n
"
,
defined
(
XFSDEBUG
));
if
(
offset
>=
len
)
{
if
(
offset
>=
len
)
{
*
start
=
buffer
;
*
start
=
buffer
;
...
...
fs/xfs/linux/xfs_sysctl.c
View file @
0af1998d
...
@@ -107,6 +107,11 @@ STATIC ctl_table xfs_table[] = {
...
@@ -107,6 +107,11 @@ STATIC ctl_table xfs_table[] = {
&
sysctl_intvec
,
NULL
,
&
sysctl_intvec
,
NULL
,
&
xfs_params
.
inherit_nodump
.
min
,
&
xfs_params
.
inherit_nodump
.
max
},
&
xfs_params
.
inherit_nodump
.
min
,
&
xfs_params
.
inherit_nodump
.
max
},
{
XFS_INHERIT_NOATIME
,
"inherit_noatime"
,
&
xfs_params
.
inherit_noatim
.
val
,
sizeof
(
ulong
),
0644
,
NULL
,
&
proc_doulongvec_minmax
,
&
sysctl_intvec
,
NULL
,
&
xfs_params
.
inherit_noatim
.
min
,
&
xfs_params
.
inherit_noatim
.
max
},
/* please keep this the last entry */
/* please keep this the last entry */
#ifdef CONFIG_PROC_FS
#ifdef CONFIG_PROC_FS
{
XFS_STATS_CLEAR
,
"stats_clear"
,
&
xfs_params
.
stats_clear
.
val
,
{
XFS_STATS_CLEAR
,
"stats_clear"
,
&
xfs_params
.
stats_clear
.
val
,
...
...
fs/xfs/linux/xfs_sysctl.h
View file @
0af1998d
...
@@ -57,6 +57,7 @@ typedef struct xfs_param {
...
@@ -57,6 +57,7 @@ typedef struct xfs_param {
xfs_sysctl_val_t
stats_clear
;
/* Reset all XFS statistics to zero. */
xfs_sysctl_val_t
stats_clear
;
/* Reset all XFS statistics to zero. */
xfs_sysctl_val_t
inherit_sync
;
/* Inherit the "sync" inode flag. */
xfs_sysctl_val_t
inherit_sync
;
/* Inherit the "sync" inode flag. */
xfs_sysctl_val_t
inherit_nodump
;
/* Inherit the "nodump" inode flag. */
xfs_sysctl_val_t
inherit_nodump
;
/* Inherit the "nodump" inode flag. */
xfs_sysctl_val_t
inherit_noatim
;
/* Inherit the "noatime" inode flag. */
}
xfs_param_t
;
}
xfs_param_t
;
/*
/*
...
@@ -84,6 +85,7 @@ enum {
...
@@ -84,6 +85,7 @@ enum {
XFS_STATS_CLEAR
=
12
,
XFS_STATS_CLEAR
=
12
,
XFS_INHERIT_SYNC
=
13
,
XFS_INHERIT_SYNC
=
13
,
XFS_INHERIT_NODUMP
=
14
,
XFS_INHERIT_NODUMP
=
14
,
XFS_INHERIT_NOATIME
=
15
,
};
};
extern
xfs_param_t
xfs_params
;
extern
xfs_param_t
xfs_params
;
...
...
fs/xfs/xfs_inode.c
View file @
0af1998d
...
@@ -1197,8 +1197,6 @@ xfs_ialloc(
...
@@ -1197,8 +1197,6 @@ xfs_ialloc(
ip
->
i_d
.
di_dmevmask
=
0
;
ip
->
i_d
.
di_dmevmask
=
0
;
ip
->
i_d
.
di_dmstate
=
0
;
ip
->
i_d
.
di_dmstate
=
0
;
ip
->
i_d
.
di_flags
=
0
;
ip
->
i_d
.
di_flags
=
0
;
if
((
pip
->
i_d
.
di_flags
&
XFS_DIFLAG_NODUMP
)
&&
xfs_inherit_nodump
)
ip
->
i_d
.
di_flags
|=
XFS_DIFLAG_NODUMP
;
flags
=
XFS_ILOG_CORE
;
flags
=
XFS_ILOG_CORE
;
switch
(
mode
&
IFMT
)
{
switch
(
mode
&
IFMT
)
{
case
IFIFO
:
case
IFIFO
:
...
@@ -1212,8 +1210,18 @@ xfs_ialloc(
...
@@ -1212,8 +1210,18 @@ xfs_ialloc(
break
;
break
;
case
IFREG
:
case
IFREG
:
case
IFDIR
:
case
IFDIR
:
if
((
pip
->
i_d
.
di_flags
&
XFS_DIFLAG_SYNC
)
&&
xfs_inherit_sync
)
if
(
pip
->
i_d
.
di_flags
&
(
XFS_DIFLAG_NOATIME
|
XFS_DIFLAG_NODUMP
|
XFS_DIFLAG_SYNC
))
{
if
((
pip
->
i_d
.
di_flags
&
XFS_DIFLAG_NOATIME
)
&&
xfs_inherit_noatime
)
ip
->
i_d
.
di_flags
|=
XFS_DIFLAG_NOATIME
;
if
((
pip
->
i_d
.
di_flags
&
XFS_DIFLAG_NODUMP
)
&&
xfs_inherit_nodump
)
ip
->
i_d
.
di_flags
|=
XFS_DIFLAG_NODUMP
;
if
((
pip
->
i_d
.
di_flags
&
XFS_DIFLAG_SYNC
)
&&
xfs_inherit_sync
)
ip
->
i_d
.
di_flags
|=
XFS_DIFLAG_SYNC
;
ip
->
i_d
.
di_flags
|=
XFS_DIFLAG_SYNC
;
}
case
IFLNK
:
case
IFLNK
:
ip
->
i_d
.
di_format
=
XFS_DINODE_FMT_EXTENTS
;
ip
->
i_d
.
di_format
=
XFS_DINODE_FMT_EXTENTS
;
ip
->
i_df
.
if_flags
=
XFS_IFEXTENTS
;
ip
->
i_df
.
if_flags
=
XFS_IFEXTENTS
;
...
...
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