kernels/linux-2.4.0/fs/nfs/write.c
/*
 * Add a request to the inode's commit list.
 */
Add a request to the inode's commit list.
Add a request to the inode ' s commit list .
static inline void
nfs_mark_request_commit(struct nfs_page *req)
{
	struct inode *inode = req->wb_inode;
	spin_lock(&nfs_wreq_lock);
	if (list_empty(&req->wb_list)) {
		nfs_list_add_request(req, &inode->u.nfs_i.commit);
		inode->u.nfs_i.ncommit++;
	}
	spin_unlock(&nfs_wreq_lock);
	inode_schedule_scan(inode, req->wb_timeout);
}
static inline void nfs_mark_request_commit ( struct nfs_page * req ) { struct inode * inode = req -> wb_inode ; spin_lock ( & nfs_wreq_lock ) ; if ( list_empty ( & req -> wb_list ) ) { nfs_list_add_request ( req , & inode -> u . nfs_i . commit ) ; inode -> u . nfs_i . ncommit ++ ; } spin_unlock ( & nfs_wreq_lock ) ; inode_schedule_scan ( inode , req -> wb_timeout ) ; }
Add a request to the inode's commit list.
Add a request to the inode ' s commit list .
/*
	 * NB: the call to inode_schedule_scan() must lie outside the
	 *     spinlock since it can run flushd().
	 */