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
ab19f1a2
Commit
ab19f1a2
authored
Dec 04, 2002
by
Christoph Hellwig
Committed by
Nathan Scott
Dec 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] move remaining buftarg manpiluation from pagebuf to xfs
SGI Modid: 2.5.x-xfs:slinx:134068a
parent
7dee2451
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
12 deletions
+10
-12
fs/xfs/linux/xfs_super.c
fs/xfs/linux/xfs_super.c
+8
-0
fs/xfs/linux/xfs_super.h
fs/xfs/linux/xfs_super.h
+1
-0
fs/xfs/pagebuf/page_buf.h
fs/xfs/pagebuf/page_buf.h
+0
-2
fs/xfs/pagebuf/page_buf_locking.c
fs/xfs/pagebuf/page_buf_locking.c
+0
-8
fs/xfs/xfs_buf.h
fs/xfs/xfs_buf.h
+1
-2
No files found.
fs/xfs/linux/xfs_super.c
View file @
ab19f1a2
...
@@ -508,6 +508,14 @@ xfs_free_buftarg(
...
@@ -508,6 +508,14 @@ xfs_free_buftarg(
kfree
(
btp
);
kfree
(
btp
);
}
}
void
xfs_relse_buftarg
(
xfs_buftarg_t
*
btp
)
{
invalidate_bdev
(
btp
->
pbr_bdev
,
1
);
truncate_inode_pages
(
btp
->
pbr_mapping
,
0LL
);
}
void
void
xfs_size_buftarg
(
xfs_size_buftarg
(
xfs_buftarg_t
*
btp
,
xfs_buftarg_t
*
btp
,
...
...
fs/xfs/linux/xfs_super.h
View file @
ab19f1a2
...
@@ -88,6 +88,7 @@ extern void xfs_blkdev_put (struct block_device *);
...
@@ -88,6 +88,7 @@ extern void xfs_blkdev_put (struct block_device *);
extern
struct
pb_target
*
xfs_alloc_buftarg
(
struct
block_device
*
);
extern
struct
pb_target
*
xfs_alloc_buftarg
(
struct
block_device
*
);
extern
void
xfs_size_buftarg
(
struct
pb_target
*
,
unsigned
int
,
unsigned
int
);
extern
void
xfs_size_buftarg
(
struct
pb_target
*
,
unsigned
int
,
unsigned
int
);
extern
void
xfs_relse_buftarg
(
struct
pb_target
*
);
extern
void
xfs_free_buftarg
(
struct
pb_target
*
);
extern
void
xfs_free_buftarg
(
struct
pb_target
*
);
#endif
/* __XFS_SUPER_H__ */
#endif
/* __XFS_SUPER_H__ */
fs/xfs/pagebuf/page_buf.h
View file @
ab19f1a2
...
@@ -296,8 +296,6 @@ extern int pagebuf_lock_value( /* return count on lock */
...
@@ -296,8 +296,6 @@ extern int pagebuf_lock_value( /* return count on lock */
extern
int
pagebuf_lock
(
/* lock buffer */
extern
int
pagebuf_lock
(
/* lock buffer */
page_buf_t
*
);
/* buffer to lock */
page_buf_t
*
);
/* buffer to lock */
extern
void
pagebuf_target_clear
(
struct
pb_target
*
);
extern
void
pagebuf_unlock
(
/* unlock buffer */
extern
void
pagebuf_unlock
(
/* unlock buffer */
page_buf_t
*
);
/* buffer to unlock */
page_buf_t
*
);
/* buffer to unlock */
...
...
fs/xfs/pagebuf/page_buf_locking.c
View file @
ab19f1a2
...
@@ -121,14 +121,6 @@ pagebuf_lock(
...
@@ -121,14 +121,6 @@ pagebuf_lock(
return
0
;
return
0
;
}
}
void
pagebuf_target_clear
(
pb_target_t
*
target
)
{
invalidate_bdev
(
target
->
pbr_bdev
,
1
);
truncate_inode_pages
(
target
->
pbr_mapping
,
0LL
);
}
/*
/*
* pagebuf_unlock
* pagebuf_unlock
*
*
...
...
fs/xfs/xfs_buf.h
View file @
ab19f1a2
...
@@ -300,8 +300,7 @@ extern void XFS_bflush(xfs_buftarg_t *);
...
@@ -300,8 +300,7 @@ extern void XFS_bflush(xfs_buftarg_t *);
#define xfs_binval(buftarg) XFS_bflush(buftarg)
#define xfs_binval(buftarg) XFS_bflush(buftarg)
#define xfs_incore_relse(buftarg,delwri_only,wait) \
#define xfs_incore_relse(buftarg,delwri_only,wait) \
pagebuf_target_clear(buftarg)
xfs_relse_buftarg(buftarg)
#define xfs_baread(target, rablkno, ralen) \
#define xfs_baread(target, rablkno, ralen) \
pagebuf_readahead((target), (rablkno), \
pagebuf_readahead((target), (rablkno), \
...
...
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