Commit a776330e authored by David S. Miller's avatar David S. Miller Committed by Anton Blanchard

[PATCH] De-bloat linux/fs/aio.c

This saves 2K of object code on sparc64.

Please consider and push around, thanks Ben.
parent 81880059
...@@ -476,7 +476,7 @@ static void aio_fput_routine(void *data) ...@@ -476,7 +476,7 @@ static void aio_fput_routine(void *data)
/* __aio_put_req /* __aio_put_req
* Returns true if this put was the last user of the request. * Returns true if this put was the last user of the request.
*/ */
static inline int __aio_put_req(struct kioctx *ctx, struct kiocb *req) static int __aio_put_req(struct kioctx *ctx, struct kiocb *req)
{ {
dprintk(KERN_DEBUG "aio_put(%p): f_count=%d\n", dprintk(KERN_DEBUG "aio_put(%p): f_count=%d\n",
req, atomic_read(&req->ki_filp->f_count)); req, atomic_read(&req->ki_filp->f_count));
...@@ -523,7 +523,7 @@ int aio_put_req(struct kiocb *req) ...@@ -523,7 +523,7 @@ int aio_put_req(struct kiocb *req)
/* Lookup an ioctx id. ioctx_list is lockless for reads. /* Lookup an ioctx id. ioctx_list is lockless for reads.
* FIXME: this is O(n) and is only suitable for development. * FIXME: this is O(n) and is only suitable for development.
*/ */
static inline struct kioctx *lookup_ioctx(unsigned long ctx_id) static struct kioctx *lookup_ioctx(unsigned long ctx_id)
{ {
struct kioctx *ioctx; struct kioctx *ioctx;
struct mm_struct *mm; struct mm_struct *mm;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment