LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2003, 07:50 AM   #1
devershetty
LQ Newbie
 
Registered: Jun 2003
Location: Gangavathi, Karnataka(state), INDIA
Distribution: Redhat 7.3
Posts: 28

Rep: Reputation: 15
loop device BH_Dirty bit


Hi All,

I am just curious to know the following.
Loop device ( drivers/block/loop.c) simply sets BH_Dirty flag as snippet shows.
and queues the buffer_head of WRITE requests. Why does it set BH_Dirty bit?
But understand ll_rw_block()(drivers/block/ll_rw_blk.c) function clears this flag in block I/O path to make_request_fn of loop device.

if (lo->lo_flags & LO_FLAGS_DO_BMAP) {
/*
* rbh locked at this point, noone else should clear
* the dirty flag
*/
if (rw == WRITE)
set_bit(BH_Dirty, &rbh->b_state);
loop_add_bh(lo, rbh);
return 0;

This bit is cleared after loop_thread processes queue requests.
Thanks for Any help.
-Kotresh.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Encrypted Filesystems using Loop Device erktrek Linux - Security 0 12-16-2004 02:57 PM
Ext3 warnings on a loop device andreseso Linux - Hardware 2 12-09-2004 10:47 PM
What is Loop Device Support? Dswissmiss Linux - General 3 08-03-2004 09:36 PM
loop: can't open device /dev/loop0: No such device or address miaviator278 Linux - Security 3 06-09-2004 10:24 PM
UMSDOS vs. loop device okok Linux - General 5 01-29-2002 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration